﻿
<script>

  // thisDoc refers to the "importee", which is blog-post.html
  var thisDoc = document.currentScript.ownerDocument;

  // thatDoc refers to the "importer", which is index.html
  var thatDoc = document;

  // grab the contents of the #blog-post from this document
  // and append it to the importing document.
  var content = thisDoc.querySelector('#class-1');
  thatDoc.body.appendChild(thatDoc.importNode(content, true));
  thatDoc.getElementById("class-0").appendChild(document.importNode(content, true));
</script>  